# 家具类
class Furniture:
    def __init__(self, name, area):
        self.name = name
        self.area = area

    def __str__(self):
        return "[%s] 占地 %.2f " % (self.name, self.area)


# 1. 创建家具
# 床
bed = Furniture("席梦思", 4)
print(bed)

# 衣柜
wardrobe = Furniture("衣柜", 2)
print(wardrobe)

# 餐桌
board = Furniture("餐桌", 1.5)
print(board)
